package cn.kgc.tangcco.anyang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.kgc.tangcco.anyang.pojo.User;

@Controller
public class HelloAction3 {
	@RequestMapping("/hello3.action")
	public String loginMethod(Model model, String account, String password, User user) {
		System.out.println("hello3.action" + "\taccount = " + account+ "\tpassword = " + password);
		System.out.println("hello3.action" + "\taccount = " + user.getAccount() + "\tpassword = " + user.getPassword());
		model.addAttribute("msg", "我爱你中国");
		return "index.jsp";
	}
}
